/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.hutech09.jsale.bsn.exception;

/**
 *
 * @author Nam
 */
public class ItemExistsException extends Exception {

    private Object obj;

    public ItemExistsException(Object obj) {
        this.obj = obj;
    }

    public ItemExistsException(Object obj, String message) {
        super(message);
        this.obj = obj;
    }

    public ItemExistsException(Object obj, String message, Throwable cause) {
        super(message, cause);
        this.obj = obj;
    }

    public ItemExistsException(Object obj, Throwable cause) {
        super(cause);
        this.obj = obj;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return "ItemExistsException{" + "obj=" + obj + '}';
    }
}
